const clipboardy = require("clipboardy");
const { warn } = require("../utils/log_tool");
const { BaseCommand } = require("./base");

class ReadClipboard extends BaseCommand {
    async execute() {
        const _data = this.selfData;
        try {
            return clipboardy.readSync();
        } catch (err) {
            warn(err);
        }
        return "";
    }
}

module.exports = {
    ReadClipboard,
};
